

import { getRequest, postRequest } from '@/lib/axios';
import {
    GAMELIST, GAMEADD, GAMEUPDATE, GAMEDEL,
    BANNERLIST, BANNERADD, BANNERDEL, BANNERPAGELIST,GAMESUPPLIER,
    GAMECATEGORY, GAMESLOTBETS, GAMESHIXUNBETS
} from '@/config/api-constant/slotsgame'

// 游戏列表
export const gameListApi = (param) => {
    return getRequest(GAMELIST, param)
}

// 添加游戏
export const gameAddApi = (param) => {
    return postRequest(GAMEADD, param)
}

//游戏更新
export const gameUpdateApi = (param) => {
    return postRequest(GAMEUPDATE, param)
}

// 删除游戏
export const gameDelApi = (param) => {
    return postRequest(GAMEDEL, param)
}

// 游戏商列表
export const gameSupplierListApi = (param) => {
    return getRequest(GAMESUPPLIER, param)
}

// banner列表
export const bannerListApi = (param) => {
    return getRequest(BANNERLIST, param)
}

// 添加banner
export const bannerAddApi = (param) => {
    return postRequest(BANNERADD, param)
}

//首页banner跳转app内部页面名字列表
export const bannerPageListApi = (param) => {
    return getRequest(BANNERPAGELIST, param)
}

// 删除首页banner
export const bannerDelApi = (param) => {
    return postRequest(BANNERDEL, param)
}

// 游戏分类
export const gameCategoryApi = (param) => {
    return postRequest(GAMECATEGORY, param)
}
// slot下注记录
export const gameSlotBetsApi = (param) => {
    return postRequest(GAMESLOTBETS, param)
}
// 视讯下注记录
export const gameShixunBetsApi = (param) => {
    return postRequest(GAMESHIXUNBETS, param)
}

// 游戏推荐
export const gameRecommendListApi = (param) => {
    return postRequest("/slotsgame/game_recommend_list", param)
}


// 新增游戏推荐
export const gameRecommendUpdateApi = (param) => {
    return postRequest("/slotsgame/game_recommend_add", param)
}


